package com.example.viewpageandfragment;

import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager2.widget.ViewPager2;

import android.os.Bundle;

import com.example.adapter.ViewPageAdapter;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ViewPager2 viewPager=findViewById(R.id.vp);
        ViewPageAdapter viewPageAdapter=new ViewPageAdapter();
        viewPager.setAdapter(viewPageAdapter);


    }
}